<template>
    <p v-text="msg"></p>
    <span v-html="msg"></span>
</template>

<script setup >
const msg="<p style='color:red'>hell word</p>"
</script>

<style scoped>

</style>